<?php
$input = "g:/a.txt";
$output = "g:/b.txt";

$a = file_get_contents($input);

$a_array = explode(';',$a);

$b = '';

foreach($a_array as $v){
	$temp = explode('|',$v);
	if(!empty($temp[1]))
		$b .= $temp[1]."\r\n";
}

@file_put_contents($output,$b);
